#pragma once
#include<functional>
#include<iostream>
#include<unistd.h>

using task_t=std::function<int(int,int)>;
void task1()
{
    std::cout<<"haha"<<std::endl;
}

void task2()
{
    std::cout<<"hehe"<<std::endl;
}

namespace taskmodule
{
    class task
    {
    public:
        task(int a,int b):_a(a),_b(b){;}
        int a(){return _a;}
        int b(){return _b;}
        int result(){return _result;}

        void excute()
        {
            sleep(1);
            _result=_a+_b;
        }
    private:
        int _a;
        int _b;
        int _result;
    };
}